﻿using System.Collections.Generic;

namespace OConf.Model
{
    /// <summary>
    /// 管理后台菜单模型
    /// </summary>
    public class AdminBetterRouterModel
    {
        /// <summary>
        /// 路由路径
        /// </summary>
        public string Path { get; set; }

        /// <summary>
        /// 路由名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 组件
        /// </summary>
        public string Component { get; set; }

        public string Redirect { get; set; }

        public int Sort { get; set; }

        /// <summary>
        /// 是否展示
        /// </summary>
        public bool Hidden { get; set; }

        public AdminBetterRouterMeta Meta { get; set; } = new AdminBetterRouterMeta();

        /// <summary>
        /// 子路由
        /// </summary>
        public List<AdminBetterRouterModel> Children { get; set; } = new List<AdminBetterRouterModel>();
    }
    public class AdminBetterRouterMeta
    {
        /// <summary>
        /// 是否固定不允许删除
        /// </summary>
        public bool Affix { get; set; }

        /// <summary>
        /// 右侧bage小红框显示的文字内容
        /// </summary>
        public string Badge { get; set; }

        /// <summary>
        /// 是否在面包屑上显示(false时不显示)
        /// </summary>
        public bool Breadcrumb { get; set; }

        /// <summary>
        /// 菜单标题
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 图标名称
        /// </summary>
        public string Icon { get; set; }

        /// <summary>
        /// 是否允许缓存
        /// </summary>
        public bool NoKeepAlive { get; set; }
    }
}
